Skip to content

Conversation

@fivetran-felixhuang
Copy link
Collaborator

When parsing SHA256 from BigQuery, we want to represent it as SHA2Digest with length 256 since the output is binary, just like we do with SHA1.

We also want to wrap SHA256 with UNHEX in the transpiled DuckDB query so that the output is binary to stay consistent with BigQuery.

For other dialects, we just want to make sure SHA2Digest with length 256 generates the appropriate queries. For example, SHA256(x) in bigquery should be tranpiled into SHA2_BINARY(x, 256) in Snowflake

@georgesittas georgesittas merged commit ca329f0 into main Dec 1, 2025
8 checks passed
@georgesittas georgesittas deleted the transpile_sha256_bigquery_duckdb branch December 1, 2025 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants